package 课堂;
import java.util.Scanner;
/**
 * Created By  醉美柳舞之众星捧月
 * @author song
 * @date 2017/11/13 14:49
 */
public class 递归乘法 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int y = scanner.nextInt();
        int x = scanner.nextInt();
        System.out.println(digui(x, y));
    }
    static int sum = 1;
    private static int digui(int x, int y) {
        if (x > 0) {
            System.out.println(x);
            sum *= y;
            x--;
            return digui(x, y);
        }
        return sum;
    }
}
